@Component public class GenericUtils extends Object
| Constructor and Description |
|---|
GenericUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
generaID()
Metodo che genera un nuovo id per il database
|
String |
getMimeType(byte[] document)
Calcola il mime type di un documento
|
boolean |
isMaggiorenne(String codiceFiscale)
Controlla che il codice fiscale in input appartenga ad un maggiorenne
|
String |
prettyFormatXml(String xml)
Esegue la formattazione di un XML in input
|
public String generaID()
public boolean isMaggiorenne(String codiceFiscale)
codiceFiscale - Il codice fiscale da controllarepublic String prettyFormatXml(String xml)
xml - La stringa contenente l'input da formattarepublic String getMimeType(byte[] document)
document - Contenuto del documento in byteCopyright © 2024. All rights reserved.